package org.gruposp2p.proyectokarma.gwt.client.domain;


public class CometdMetaMessage {
	/*These are the meta channels available in the JavaScript Cometd implementation:
		/meta/handshake, /meta/connect, /meta/disconnect, /meta/subscribe
		/meta/unsubscribe, /meta/publish, /meta/unsuccessful*/
	public enum MetaChannel {
	    CONNECT, HANDSHAKE, SUBSCRIBE
	}
	
	public String channel;
	public String clientId;
	public String version;
	public boolean successful;
	public String minimumVersion;
	public String id;
	public String[] supportedConnectionTypes;
	public boolean reestablish;
	public String action;
	public String subscription;
	
	public String _toString() {
		return "channel: " + channel + " - clientId: " + clientId 
			+ " - successful: " + successful + " - action: " + action;
	}

}
